import React, {Component} from 'react'
import {Button, Form} from 'antd'
// import 'antd/dist/antd.css'
// import './Child.less'


export default class Child extends React.Component {
    constructor(props) {
        super(props)
        this.state = {}
    }

    componentWillMount() {
        console.log("这是componentWillMount()")
    }

    componentDidMount() {
        console.log("componentDidMount()")
    }

    componentDidUpdate(prevProps, prevState, snapshot) {
        console.log("componentDidUpdate(prevProps, prevState, snapshot)")
    }

    componentWillUpdate(nextProps, nextState, nextContext) {
        console.log("componentWillUpdate(nextProps, nextState, nextContext)")
    }

    shouldComponentUpdate(nextProps, nextState, nextContext) {
        console.log("shouldComponentUpdate(nextProps, nextState, nextContext)")
        return true
    }

    render() {
        return <div className="colorProfile">{this.props.name}1111
            <Button onClick={this.handleadd}>点击一下</Button>

        </div>

    }

    show = (a, b) => {
        console.log("test")
    }
}